export default function (component, parentId) {
  let comp
  if (parentId === '-1') {
    comp = () => import('@/layout')
  } else {
    switch (component) {
      case 'system.user':
        comp = () => import('@/views/system/user')
        break
      case 'system.organization':
        comp = () => import('@/views/system/organization')
        break
      case 'system.role':
        comp = () => import('@/views/system/role')
        break
      case 'system.route':
        comp = () => import('@/views/system/route')
        break
      case 'tenant.info':
        comp = () => import('@/views/tenant/info')
        break
      case 'tenant.account':
        comp = () => import('@/views/tenant/account')
        break
      default:
        comp = () => import('@/views/dashboard/index')
    }
  }
  return comp
}
